package com.kob.backend.controller.product;

import com.kob.backend.service.product.InventoryMinusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class InventoryMinusController {
    @Autowired
    private InventoryMinusService inventoryMinusService;
    @PostMapping("/product/inventoryminus")
    public void inventoryminus(@RequestParam Map<String,String> map){
        Integer productid=Integer.parseInt(map.get("productid"));
        inventoryMinusService.inventoryminus(productid);
    }
}
